package cn.owng.server.common.generated.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 游戏记录用户信息
 * </p>
 *
 * @author baomidou
 * @since 2024-08-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("game_record_user")
public class GameRecordUser extends Model<GameRecordUser> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "game_record_user_id", type = IdType.ASSIGN_ID)
    private Long gameRecordUserId;

    @TableField("game_record_id")
    private Long gameRecordId;

    @TableField("user_id")
    private Long userId;

    /**
     * 添加时间
     */
    @TableField("date_added")
    private Date dateAdded;

    /**
     * 更新时间
     */
    @TableField("date_modified")
    private Date dateModified;

    @Override
    public Serializable pkVal() {
        return this.gameRecordUserId;
    }
}
